<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'coincard-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'stt'); ?>
		<?php echo $form->textField($model,'stt'); ?>
		<?php echo $form->error($model,'stt'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'loginName'); ?>
		<?php echo $form->textField($model,'loginName',array('size'=>32,'maxlength'=>32)); ?>
		<?php echo $form->error($model,'loginName'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'loaithe'); ?>
		<?php echo $form->textField($model,'loaithe',array('size'=>60,'maxlength'=>100)); ?>
		<?php echo $form->error($model,'loaithe'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'menhgia'); ?>
		<?php echo $form->textField($model,'menhgia',array('size'=>20,'maxlength'=>20)); ?>
		<?php echo $form->error($model,'menhgia'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'sopin'); ?>
		<?php echo $form->textField($model,'sopin',array('size'=>60,'maxlength'=>100)); ?>
		<?php echo $form->error($model,'sopin'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'CoinCardKey'); ?>
		<?php echo $form->textField($model,'CoinCardKey',array('size'=>60,'maxlength'=>64)); ?>
		<?php echo $form->error($model,'CoinCardKey'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'value'); ?>
		<?php echo $form->textField($model,'value'); ?>
		<?php echo $form->error($model,'value'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'used'); ?>
		<?php echo $form->textField($model,'used'); ?>
		<?php echo $form->error($model,'used'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'time'); ?>
		<?php echo $form->textField($model,'time',array('size'=>20,'maxlength'=>20)); ?>
		<?php echo $form->error($model,'time'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'tienthuc'); ?>
		<?php echo $form->textField($model,'tienthuc',array('size'=>20,'maxlength'=>20)); ?>
		<?php echo $form->error($model,'tienthuc'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'solan'); ?>
		<?php echo $form->textField($model,'solan'); ?>
		<?php echo $form->error($model,'solan'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->